<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateUsers extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('user_name',100)->default('')->comment('用户名');
            $table->string('password',100)->default('')->comment('密码');
            $table->string('user_email',100)->default('')->comment('邮箱');
            $table->string('user_mobile',100)->default('')->comment('手机号');
            $table->unsignedTinyInteger('is_vip')->default(0)->comment('是否会员 1是0否');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('users');
    }
}
